package top.dingwen.io.treasure.es.exception;

import top.dingwen.io.treasure.base.constant.SupWarsConstant;
import top.dingwen.io.treasure.base.exception.ExceptionCode;
import top.dingwen.io.treasure.webplus.exception.base.BusinessException;

/**
 *  es异常
 *
 * @author dingwen
 * @since 2024/11/7 16:12
 */
@SuppressWarnings(SupWarsConstant.UNUSED)
public class EsException extends BusinessException {
    public EsException(ExceptionCode exceptionCode) {
        super(exceptionCode);
    }

    public EsException(ExceptionCode exceptionCode, String message) {
        super(exceptionCode, message);
        exceptionCode.setMessage(message);
    }

    public EsException(ExceptionCode exceptionCode, String[] params) {
        super(exceptionCode, params);
    }
}
